#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "RTC_Timer.h"
int main(void)
{
	OLED_Init();
	
	init_RTC_timer();
    
    OLED_ShowString(1, 1, "hello");
    uint8_t num=0;
    uint32_t tick_count=0;
    
    RTC_SetCounter(25);
	while (1)
	{
		OLED_ShowNum(2, 1, num, 5);
        //num = RTC_GetCounter();
        get_tick_count((unsigned long *)&tick_count);
        OLED_ShowNum(3, 1, tick_count, 15);
        mdelay(1000);
        num++;
	}
}
